#pragma once 

#include <iostream>
#include "Protocol.hpp"

class Task
{    
public:
    Task()
    {}
    Task(int _sock):sock(_sock)
    {}
    //处理任务
    void ProcessOn()
    {
        handler(sock);
    }
    ~Task()
    {}
private:
    int sock;
    CallBack handler; //设置回调
};